package com.xiaoyu.awakening.deepdoc.plugin.ocr;

import com.baidu.aip.ocr.AipOcr;
import com.xiaoyu.awakening.deepdoc.enums.FileFormatEnums;
import com.xiaoyu.awakening.deepdoc.plugin.AbstractAwkPlugin;
import com.xiaoyu.awakening.deepdoc.plugin.AwkParsePlugin;
import jakarta.annotation.Resource;
import org.springframework.stereotype.Component;

/**
 * 百度OCR集成
 *
 * @author wangxiaoyu
 * @date 2025/3/14 16:35
 * @since v1.0
 */
@Component
public class BaiduORCPlugin extends AbstractAwkPlugin implements AwkParsePlugin {
    @Resource
    private AipOcr aipOcrClient;

    @Override
    public FileFormatEnums getFileFormat(byte[] file) {
        return null;
    }

    @Override
    public String file2text(byte[] file, FileFormatEnums format) {
        return "";
    }

    @Override
    protected void initAndConfig() {

    }
}
